package me.zxk.qwert_poetry.service;

import me.zxk.qwert_poetry.dao.Author;
import org.springframework.data.domain.Page;

public interface AuthorService {
    Author getAuthorById(int id);
    Author addAuthor(Author author);
    Author deleteAuthorById(int id);
    Author updateAuthor(Author author);

    Page<Author> listAuthors(int page, int size);

    Author getAuthorByName(String name);
}
